package com.xiaohu.controller;

import com.xiaohu.config.DefConfigProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RestController
public class HelloController {

    @Autowired
    private DefConfigProperties defConfigProperties;

    @RequestMapping("/hello")
//    @ResponseBody
    public String hello(){
        System.out.println(defConfigProperties.getName());
        return "Hello,springboot,完犊子";
    }
}
